<style>
    .tag{
        display: inline-block;
        margin-right: 10px;
        padding: 5px 10px;
        border: 1px solid #ccc;
        cursor: pointer;
    }
    .select{
        background-color: #f89406;
        color: #fff;
    }
</style>
<div class="container-fluid" style="padding: 20px 10px 0px 10px">
	<div class="row-fluid">
		<div class="well">
		    <ul class="nav nav-tabs">
		      <li class="active"><b>绑定腕带</b></li>
		    </ul>
		    <div id="myTabContent" class="tab-content">
				<div class="tab-pane active in" id="home">
					<form id="formid" action="/patient/editBindWristband" method="post">
						<p>腕带号：<input type="text" value="<?=$getData['wristband_num']?>" placeholder="腕带号" style="width:100px;" name="wristband_num" class="wristband_num"></p>
						<p>版本号：<input type="text" value="<?=$getData['version']?>" placeholder="版本号" style="width:100px;" name="version" class="version"></p>
						<p>姓名：<input type="text" value="<?=$getData['patient_name']?>" placeholder="姓名" style="width:100px;" name="patient_name" class="patient_name"></p>
						<p>手机号：<input type="text" value="<?=$getData['mobile']?>" placeholder="手机号" style="width:100px;" name="mobile" class="mobile"></p>
						<p>住院号：<input  name="hospital_num" class="input input-medium" type="text" placeholder="住院号" value="<?=$getData['hospital_num']?>" /></p>
						<p>门诊号：<input  name="outpatient_num" class="input input-medium" type="text" placeholder="住院号" value="<?=$getData['outpatient_num']?>" /></p>
						<p><div style="display:inline">二维码：<input type="text" name="qr_url" class="setImd1Text" id="setImd1" style="width:348px" value="<?=$getData['qr_url']?>" readonly> <input type="button" class="btn btn-info setImdBtn1" style='margin-top:-8px' value="选择图片">&nbsp;<a class="btn btn-warning  picViews" <?=$getData['qr_url'] ? '' : 'disabled title="暂不可用"'?> url="<?=$getData['qr_url'] ? transUrl($getData['qr_url']) : ''?>" style='margin-top:-8px'>查看</a></div></p>

						<input type="hidden" value="1" name="dosubmit" />
						<input type="hidden" value="<?=$getData['patient_id']?>" name="patient_id" />
					</form>
				</div>
				<div class="btn-toolbar">
				    <button class="btn btn-primary" id="btn-save" style="margin-left:72px;margin-top:20px"><i class="icon-save"></i> 保存</button>
				  <div class="btn-group">
				  </div>
				</div>
			</div>
		</div>
	</div>
</div>

<!-- <script type="text/javascript" src="http://api.map.baidu.com/api?v=2.0&ak=d7IG6wfuKy6EkfAvka9rm1GGztEE4GBO"></script> -->
<script>
$(function(){
	$('.setImdBtn1').click(function(){
		$('#setImd1').selfups();
	});
	$('.setImdBtn2').click(function(){
		$('#setImd2').selfups();
	});
	$('.setImdBtn3').click(function(){
		$('#setImd3').selfups();
	});

	$('.setImdBtn4').click(function(){
		$('#setImd4').selfups();
	});
	$('.setImdBtn5').click(function(){
		$('#setImd5').selfups();
	});
	$('.setImdBtn6').click(function(){
		$('#setImd6').selfups();
	});

	$('.setImdBtn').click(function(){
		$('#setImd').selfups();
	});



	$('#btn-save').click(function(){
		if($('input[name="xq_img1"]').val() == ''){
			showmsg('奖品图片不能为空！');
		}else if($('input[name="prize_name"]').val() == ''){
			showmsg('奖品名称不能为空！');
		}else if($('input[name="prize_num"]').val() == ''){
			showmsg('奖品总数不能为空！');
		}else if($('input[name="prize_price"]').val() == ''){
			showmsg('奖品单价不能为空！');
		}else if($('input[name="begin_at"]').val() == ''){
			showmsg('开始时间不能为空！');
		}else if($('input[name="end_at"]').val() == ''){
			showmsg('结束时间不能为空！');
		}else if($('input[name="allow_num"]').val() == ''){
			showmsg('参与人数不能为空！');
		}else{
			setBtn($('#btn-save'));
			$('#formid').submit();
		}
	});
})
</script>